package Data;

import java.util.LinkedList;
import static Data.FinalVariables.*;

public class State {
	String stateName;
	int stateValue;
	int xLocation;
	int yLocation;
	LinkedList <Relation> relationsList;
	
	public State(String stateName, int x, int y){
		this.xLocation=x;
		this.yLocation=y;
		this.stateName=stateName;
		this.relationsList= new LinkedList <Relation>();
	}
	public String getStateName(){
		return this.stateName;
	}
	private boolean isRelationExists(Relation relation){
		for(int i = 0; i<this.relationsList.size(); i++){
			return true;
		}
		return false;
	}
	
	public void setStateType (int stateType){
		this.stateValue=stateType;
	}
	
	public int getStateType(){
		return this.stateValue;
	}
	
	public void setLocation (int x, int y){
		this.xLocation=x;
		this.yLocation=y;
	}
	
	public int getX(){
		return this.xLocation;
	}
	
	public int getY(){
		return this.yLocation;
	}
}
